﻿@namespace iPanel.Components

@using iPanel.Extensions
@using iPanel.Otlp.Model
@using iPanel.Resources

@inject IStringLocalizer<iPanel.Resources.Resources> Loc

<GridValue Value="@Entry.Ip"
           ValueDescription="IP"
           EnableHighlighting="true"
           HighlightText="@FilterText"
           StopClickPropagation="true">
    <ContentInButtonArea>
        <ExceptionDetails ExceptionText="@_exceptionText" />
    </ContentInButtonArea>
</GridValue>

@code {
    [Parameter, EditorRequired]
    public required OtlpResourceView Entry { get; set; }

    [Parameter, EditorRequired]
    public required string FilterText { get; set; }
}
